import {theme} from "../../common/theme.js";
export const css = `
.left-menu {
    background-color: ${theme.bgc};
    color: ${theme.tc};
    font-size: ${theme.menuFontSize};
    height: ${theme.screenRate};
    width: ${theme.leftMenuWidth};
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow-y: hidden;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    height: ${theme.topHeight};
    margin-bottom: ${theme.topMarginBottom};
    padding-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.menu-content {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #fff;
    background: transparent;
    user-select: none;
    gap: 12px;
}

.menu-item.selected {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-icon {
    font-size: 20px;
    color: inherit;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    text-align: left;
}

.menu-text a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    cursor: inherit;
}

.menu-text a:link,
.menu-text a:visited,
.menu-text a:hover,
.menu-text a:active,
.menu-text a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
    background: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.menu-item:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.menu-value {
    width: 180px;
}

.menu-value sl-menu-item::part(base) {
    padding: 0;
}

.menu-value sl-button::part(base) {
    width: 100%;
    display: flex;
    justify-content: center;
    color: white;
    --sl-color-primary-600: white;
}

/* 平板设备 */
@media (max-width: 1024px) {
    .left-menu {
        width: 240px;
    }
    
    .logo-image {
        max-width: 160px;
    }
}

/* 移动设备 - 横屏 */
@media (max-width: 768px) {
    .left-menu {
        width: 200px;
        transform: translateX(-100%);
    }
    
    .left-menu.mobile-open {
        transform: translateX(0);
    }
    
    .logo {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .logo-image {
        max-width: 140px;
    }

    .menu-item {
        padding: 12px 15px;
        font-size: 16px;
        gap: 10px;
    }
    
    .menu-icon {
        font-size: 18px;
    }
}

/* 移动设备 - 竖屏 */
@media (max-width: 480px) {
    .left-menu {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(-100%);
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .left-menu.mobile-open {
        transform: translateY(0);
    }
    
    .logo {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .logo-image {
        max-width: 120px;
    }

    .menu-item {
        padding: 10px 15px;
        font-size: 16px;
        gap: 8px;
    }
    
    .menu-icon {
        font-size: 16px;
    }
}

/* 超小屏幕 */
@media (max-width: 320px) {
    .logo-image {
        max-width: 100px;
    }
    
    .logo {
        padding: 15px 10px;
    }

    .menu-item {
        padding: 8px 12px;
        font-size: 14px;
        gap: 6px;
    }
    
    .menu-icon {
        font-size: 14px;
    }
}
`